Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing MRUSTC_LIB env variable (ref #214) #287

Closed
wants to merge 1 commit into from

Conversation

catap
Copy link
Contributor

@catap catap commented Aug 10, 2022

The idea is simple: we need some way to put -latomic to gcc call. Let add a dedicated variable which allows to add any library which may be needed.

It fixes: #214

catap added a commit to catap/mrustc that referenced this pull request Aug 10, 2022
The idea is simple: we need some way to put `-latomic` to `gcc` call.
Let add a dedicated variable which allows to add any library which may
be needed.

It may fixes: thepowersgang#287
The idea is simple: we need some way to put `-latomic` to `gcc` call.
Let add a dedicated variable which allows to add any library which may
be needed.

It may fixes: thepowersgang#214
@catap
Copy link
Contributor Author

catap commented Aug 30, 2022

@thepowersgang I'd like to remind about this one

@thepowersgang
Copy link
Owner

I don't feel this should be a mrustc environment variable, maybe a minicargo one - but if this is required for a target, it should be added to the target spec.

@catap
Copy link
Contributor Author

catap commented Aug 30, 2022

@thepowersgang but at some point of bootstrap minicargo is replaced to cargo, and such -latomic still needed for gcc.

Or I've missed something?

@thepowersgang
Copy link
Owner

minicargo is used whenever mrustc is used.
The PROXY_MRUSTC variable in run_rustc is only ever set to the mrustc-built rustc

@catap
Copy link
Contributor Author

catap commented Sep 3, 2022

After thinking a while it seems like a bad approach. Let me close it.

@catap catap closed this Sep 3, 2022
@catap catap deleted the mrustc_lib branch September 3, 2022 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MacOS + GCC11: LIBS build error (Undefined symbol ___atomic_compare_exchange_16)
2 participants